package cn.wolfcode.wms.query;

import lombok.Data;

@Data
public class QueryObject {
    private int currentPage = 1;
    private int pageSize = 5;
    public int getStartIndex(){
        return (currentPage - 1) * pageSize;
    }
    public String str2null(String str){
        if(str != null && "".equals(str.trim())){
            return null;
        }
        return str;
    }
}
